package org.lds.simple.disruptor.producer.sequencer;

import java.util.concurrent.locks.LockSupport;

public class MultiProducerSequencer extends AbstractSequencer {
    @Override
    public long next() {
        long nextProducerSequence;
        while ((nextProducerSequence = allowProduce()) == -1L) {
            LockSupport.parkNanos(1L);
        }

        return nextProducerSequence;
    }
}
